<@space.space_html title='${(show.title)!}'>
<script type="text/javascript" src="${statics}/plugins/flowplayer/example/flowplayer-3.2.4.min.js"></script>    
    <div class="clear"></div>
	

	
	<div class="project">
    	<div class="prowarp">
			<div class="mytop">
				<p style="float:right; margin-top:20px;">
					 
					<!-- ShareTo Button BEGIN -->
					<div class="shareto_toolbox">
					<a href="http://shareto.com.cn/share.html" class="shareto_button_compact">分享到</a>
					<span class="shareto_separator">|</span>
					<a class="shareto_button_tsina"></a>
					<a class="shareto_button_kaixin001"></a>
					<a class="shareto_button_renren"></a>
					<a class="shareto_button_douban"></a>
					</div>
					<script type="text/javascript" src="http://s.shareto.com.cn/js/shareto_button.js" charset="utf-8"></script>
					<!-- ShareTo Button END -->
					
					<input name="" type="button" class="n1" style="font-size:12px; color:#bb0000;" value="收藏" onClick="favorite('${(show.id?c)}')"/>
					<input name="" type="button" class="n1" style="font-size:12px; color:#bb0000;" value="返回展示" onClick="window.location.href='${base}/space/show?domain=${domain!}'"/>
				</p>
				<#if (show.top)??&&(show.top==1)>
				<img src="${base}/images/btn_hd.gif" />
				</#if>
			</div>
			
			<div class="myheader">
				<div class="Hright">
					<em>${(show.pubTime?string("yyyy-MM-dd"))!}</em>
					<p>
						${(show.title)!}
					</p>
					<ul>
						<#--<li><img src="${base}/images/icolist01.gif" /> 6</li>
						<li><img src="${base}/images/icolist02.gif" /> 5517</li>-->
						<li><img src="${base}/images/icolist03.gif" /> ${(show.commentaries)!}</li>
						<li><img src="${base}/images/icolist04.gif" /> ${(show.hit)!}</li>
						<li><img src="${base}/images/icolist05.gif" /> ${(show.favoriteCount)!}</li>
					</ul>
				</div>
				<#if (show.cover)??>
					<img src="${(show.cover)!}" width="263px" height="256px"/>
				<#else>
					<img src="${base}/images/video_img.jpg" />
				</#if>
			</div>
			
			<div class="mybody" style="padding:10px 20px;">
				<div style="padding:10px 0px;">
					<#--
					<p style="text-align:right; float:right; padding-top:20px;">评论 >  6  <input name="" type="button" class="n1" style="font-size:12px; color:#bb0000;" value="评 论" /> </p>
					<img src="${base}/images/ico_01.jpg" style="float:left;"/><span style="line-height:50px; margin-left:10px;">0人转发</span>   <span style="line-height:50px;margin-left:10px;">12人收藏</span>
					-->
					<div class="clear"></div>
					
				</div>
				<div class="mycontent">
					
					<#if (show.showModules)??>
						<#list show.showModules as moudle>
							<#if moudle.type=1>
								<div style=" margin:30px 150px">${(moudle.title)!}</div>
								<div style=" margin:30px 150px"><img src="${(moudle.path)!}" width="400px"/></div>
							</#if>
							<#if moudle.type=0>
								<div style=" margin:30px 150px">${(moudle.title)!}</div>
								<div style=" margin:30px 150px">${(moudle.content)!}</div>
							</#if>
							<#if moudle.type=2>
								<div style=" margin:30px 150px">${(moudle.title)!}</div>
								<div style=" margin:30px 150px">
								<object type="application/x-shockwave-flash" data="${statics}/plugins/dewplayer/dewplayer.swf" width="200" height="20" id="dewplayer" name="dewplayer" >
									<param name="movie" value="dewplayer.swf" />
									<param name="flashvars" value="mp3=${(moudle.path)!}&amp;autostart=1&amp;autoreplay=1&amp;showtime=1" id="flashvarsId"/>
									<param name="wmode" value="transparent" />
								</object>
								</div>
							</#if>
							<#if moudle.type=3>
								<div style=" margin:30px 150px">${(moudle.title)!}</div>
								<div style=" margin:30px 150px">
								<#if moudle??&&moudle.content??>
									<#if moudle.content?ends_with("swf")||moudle.content?ends_with("flv")>
										<a 
											 href="${(moudle.content)!}"  
											 style="display:block;width:520px;height:330px"  
											 id="player${(moudle.id?c)}"> 
										</a>
										<script>
											flowplayer("player${(moudle.id?c)}", "${(moudle.content)!}");
											<#-- 
												flowplayer("player${(moudle.id?c)}", "${statics}/plugins/flowplayer/flowplayer-3.2.4.swf");自定制的边框
												flowplayer("player${(moudle.id?c)}", "${(moudle.content)!}");无边框
											-->
										</script> 
									<#else>
										${(moudle.content)!}
									</#if>
								</#if>
								</div>
							</#if>
						</#list>
					</#if>
				</div>
				
			</div>
			
<#-- 调用发评论标签-->
					<@comment.push applicationId=id/>
					<div class="building">
						<div class="floor">
							<@comment.tag applicationId=id/>
							<#if commentPage??>
								<#list commentPage.result as comment>
									<div <#if comment_index%2 != 0>class="floorheader"<#else>class="floorfoot"</#if> >
										<div class="builds">
											<div class="speak">
												${(comment.content)!}
											</div>
											<div class="clear"></div>
											<span>${(comment.createDate?string('MM/dd'))!}</span>
										</div>
										<div class="buildcar">
											<a href="${base}/space/?domain=${(comment.space.user.loginName)!}" target="_blank">
											<img src="${(comment.space.user.avatar)!}" class="carimg" width="53px" height="58px"/>
											</a>
											<span>VIP</span>
											<div class="statu">
												<img src="../images/statu_up.gif" />
											</div>
											<div class="clear"></div>
											<h5>
												<a href="${base}/space/?domain=${(comment.space.user.loginName)!}" target="_blank">
												${(comment.space.user.loginName)!}
												</a>	
											</h5>
										</div>
										<div class="clear"></div>
									</div>
								</#list>
							</#if>
						</div>
					</div>
			
			<div class="mybottom">
				
				<div style="text-align:right;">评论 ><input name="" type="button" class="n1" style="font-size:12px; color:#bb0000;" value="评 论" onClick="window.location.href='${base}/space/show!comment?domain=${domain!}&id=${show.id?c}'"/> </div>
				<p style="float:right; margin-top:20px;">
					<input name="" type="button" class="n1" style="font-size:12px; color:#bb0000;" value="收藏" onClick="favorite('${(show.id?c)}')"/>
					<input name="" type="button" class="n1" style="font-size:12px; color:#bb0000;" value="返回展示" onClick="window.location.href='${base}/space/show?domain=${domain!}'"/>
				</p>
				
			</div>
    	  <div class="clear"></div>
        </div>
    </div>
<script>
//收藏
function favorite(showId){
    $.ajax({
        type: "post",
        dataType: "json",
        url: '${base}' + "/space/show!favorite?time=" + new Date().getTime(),
        async: false,
        data: {
            "id": showId
        },
        success: function(ok){
			if(ok=="1"){
				alert("收藏成功");
			}else{
				alert("收藏失败");
			}
        }
    });
}
</script>
</@space.space_html>


